package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProjectProgressViewMapper;
import com.ruoyi.system.domain.ProjectProgressView;
import com.ruoyi.system.service.IProjectProgressViewService;

/**
 * VIEWService业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-27
 */
@Service
public class ProjectProgressViewServiceImpl implements IProjectProgressViewService 
{
    @Autowired
    private ProjectProgressViewMapper projectProgressViewMapper;

    /**
     * 查询VIEW
     * 
     * @param progressId VIEW主键
     * @return VIEW
     */
    @Override
    public ProjectProgressView selectProjectProgressViewByProgressId(Long progressId)
    {
        return projectProgressViewMapper.selectProjectProgressViewByProgressId(progressId);
    }

    /**
     * 查询VIEW列表
     * 
     * @param projectProgressView VIEW
     * @return VIEW
     */
    @Override
    public List<ProjectProgressView> selectProjectProgressViewList(ProjectProgressView projectProgressView)
    {
        return projectProgressViewMapper.selectProjectProgressViewList(projectProgressView);
    }

    /**
     * 新增VIEW
     * 
     * @param projectProgressView VIEW
     * @return 结果
     */
    @Override
    public int insertProjectProgressView(ProjectProgressView projectProgressView)
    {
        return projectProgressViewMapper.insertProjectProgressView(projectProgressView);
    }

    /**
     * 修改VIEW
     * 
     * @param projectProgressView VIEW
     * @return 结果
     */
    @Override
    public int updateProjectProgressView(ProjectProgressView projectProgressView)
    {
        return projectProgressViewMapper.updateProjectProgressView(projectProgressView);
    }

    /**
     * 批量删除VIEW
     * 
     * @param progressIds 需要删除的VIEW主键
     * @return 结果
     */
    @Override
    public int deleteProjectProgressViewByProgressIds(Long[] progressIds)
    {
        return projectProgressViewMapper.deleteProjectProgressViewByProgressIds(progressIds);
    }

    /**
     * 删除VIEW信息
     * 
     * @param progressId VIEW主键
     * @return 结果
     */
    @Override
    public int deleteProjectProgressViewByProgressId(Long progressId)
    {
        return projectProgressViewMapper.deleteProjectProgressViewByProgressId(progressId);
    }
}
